//
//  CommonTool.swift
//  langligelang
//
//  Created by 秦－政 on 2016/10/22.
//  Copyright © 2016年 pete. All rights reserved.
//

import UIKit

// 微博中需要使用的通知名字
let SLSWITCHROOTVCNOTI = "SLSWITCHROOTVCNOTI"
//  点击表情按钮的通知名
let DidSelectedEmoticonButtonNotification = "DidSelectedEmoticonButtonNotification"
//  点击删除表情按钮的通知
let DidSelectedDeleteEmotionButtonNotification = "DidSelectedDeleteEmotionButtonNotification"

// 微博相关信息
let SLAPPKEY = "2558615762"
let SLAPPSECRET = "bcc0fda313ab6c6c0b23ed0847ec1069"
let SLREDIRECTURI = "http://www.baidu.com"
// 微博账号和密码
let SLWBNAME = "petee@qq.com"
let SLWBPASSWD = "hyp521"

// 主题颜色
let SLTHEMECOLOR = UIColor.orange
// 屏幕的宽度和高度
let SLSCREENW = UIScreen.main.bounds.width
let SLSCREENH = UIScreen.main.bounds.height
// 常用字体大小
let SLBigFontSize: CGFloat = 18
let SLNormalFontSize: CGFloat = 14
let SLSmallFontSize: CGFloat = 10

// 随机颜色
func SLRandomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}


